package com.foreknow.test;

public class PersonImpl extends Person {
    @Override
    public void eat() {
        System.out.println("吃饭......");
    }

    public void test(Person person){
        person.eat();
    }

    public static void main(String[] args) {
        PersonImpl person = new PersonImpl();
        person.eat();
        person.test(person);
    }
}
